The inputs consist of four radio buttons and a slider.
- The radio buttons are used to select a weather variable.
- The slider is used to select a sample size between 1 and 100.
- When the user clicks the "Create plots" button, a sample of households of the selected size is taken from the dataset, and the energy consumption is summed over these households. A new sample is taken each time the button is clicked.
The app then creates two plots.
- The first is a plot of the aggregated consumption against the selected weather variable, fitted with a linear model.
- The second plot shows the energy consumption profile for a typical winter day, aggregated over the chosen sample.